package com.hxzy.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.hxzy.domain.Students;
import com.hxzy.repository.StudentRepository;


@Component
public class StudentService {
	
	@Autowired
	private StudentRepository studentRepository;
	
	public List<Students> getStudents(){
		
		return  (List<Students>) studentRepository.findAll();
	}
}
